#include<iostream>
#include<cstring>
#include<algorithm>

using namespace std;

const int N = 59;
int n, a[N], b[N];

int main() {
	cin >> n;
	for (int i = 1; i <= n; i++)
	{
		cin >> a[i];
	}
    for (int i = 1; i <= n; i++) {
        cin >> b[i];
    }
    int sum_a = 0, sum_b = 0;
    for (int i = 1; i <= n; i++)
    {
        sum_a += a[i];
        sum_b += b[i];
    }    
    if (sum_a >= sum_b) 
    {
        cout << "Yes";
    }
    else 
    {
        cout << "No";
    }
    return 0;
}
